package com.wecloud.core.constant;

public enum ErrorMsg {
	Error_0000("0000","成功"),
	Error_0001("0001","用户名或密码错误"),
	Error_0002("0002","用户名或密码不能为空"),
	Error_0003("0003","登陆过期，请重新登陆"),
	Error_0004("0004","用户名不能为空"),
	Error_0005("0005","密码不能为空"),
	Error_0006("0006","用户名已存在"),
	Error_0007("0007","邮箱格式错误"),
	Error_0008("0008","手机号码格式错误"),
	Error_0009("0009","性别不能为空"),
	Error_0010("0010","手机号码已注册"),
	Error_0011("0011","邮箱已注册"),
	Error_0012("0012","转码错误"),
	Error_0013("0013","上传头像失败"),
	Error_9996("9996","您已提交，请勿重复提交"),
	Error_9997("9997","初始化上下文失败"),
	Error_9998("9998","请求uri为空"),
	Error_9999("9999","系统未知错误");
	
	String rtnCode;
	String desc;
	
	public String getRtnCode() {
		return rtnCode;
	}

	public void setRtnCode(String rtnCode) {
		this.rtnCode = rtnCode;
	}

	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}

	ErrorMsg(String ordinal, String desc) {
		this.rtnCode = ordinal;
		this.desc = desc;
	}
}
